package com.lcj.mis.feign;

import com.lcj.common.util.Result;
import com.lcj.mis.controller.form.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "aoch-odr")
public interface OdrServiceApi {

    @PostMapping("/comment/searchCommentByPage")
    public Result searchCommentByPage(SearchCommentByPageForm form);

    /**
     * 分页查询订单
     * @param form
     * @return order by page
     */
    @PostMapping("/order/searchOrderByPage")
    public Result searchOrderByPage(SearchOrderByPageForm form);

    /**
     * 查询订单详情
     * @param form
     * @return
     */
    @PostMapping("/order/searchOrderContent")
    public Result searchOrderContent(OrderIdForm form);

    /**
     * 查询30内上车点
     * @return
     */
    @PostMapping("/order/searchOrderStartLocationIn30Days")
    public Result searchOrderStartLocationIn30Days();

    /**
     * 分页查询订单监控记录
     * @param form
     * @return
     */
    @PostMapping("/monitoring/searchOrderMonitoringByPage")
    Result searchOrderMonitoringByPage(SearchMonitoringForm form);


    /**
     * 预览账单
     * @param form
     * @return Result
     */
    @PostMapping("/bill/searchReviewDriverOrderBill")
    public Result searchReviewDriverOrderBill(OrderIdForm form);

    @PostMapping("/order/updateOrderStatus")
    Result updateOrderStatus(UpdateOrderStatusForm form);
}